﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using XYZshell.Game.CardGameEngine.Common;
using XYZshell.Game.CardGameEngine.CardFramework;
namespace XYZshell.Game.CardGameEngine.RuleFramework
{
	public class HandCondition : PropertyCondition<Hand>
	{
		Hand _hand;
		Player _player;
		public HandCondition( string expr )
		{
			
		}

		private bool Calculate( ConditionType exprType, params string[] val )
		{
			int check=int.Parse( val[0] );
			switch (exprType)
			{
				case ConditionType.GreaterThan:
					return _hand.Count > check;

				case ConditionType.LessThan:
					return _hand.Count < check;
                //case ConditionType.Contain :
                //    return _hand.Cards
                //case ConditionType.LessThan:
                //    return _hand.Count < check;
			}
			return false;
		}
		public override bool CalculateConditon()
		{
			throw new NotImplementedException();
		}
	}
}
